package org.stwy.lease.contract;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.stwy.custom.CustomEntity;
import org.stwy.pro.asset.AssetEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rap.common.annotation.MetaData;
import com.rap.common.entity.AuditableEntity;
import com.rap.common.entity.BaseEntity;

/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-17 20:48:15
*<p></p>
*
*@参与人：Rap.Codegen
*/
 
@MetaData(value = "合同资产")
@Entity
@Table(name = "stwy_contractAsset")
public class ContractAssetEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	@MetaData(value = "合同",comments="" )
	@ManyToOne
	@JoinColumn(name = "contractId")
	private ContractEntity contract;
	
	@MetaData(value = "资产",comments="" )
	@ManyToOne
	@JoinColumn(name = "assetId")
	private AssetEntity asset;

	public ContractEntity getContract() {
		return contract;
	}

	public void setContract(ContractEntity contract) {
		this.contract = contract;
	}

	public AssetEntity getAsset() {
		return asset;
	}

	public void setAsset(AssetEntity asset) {
		this.asset = asset;
	}
	
	
}
